package ar.com.fiuba.ElectronicCircuitAnalyst.domain.impl.functions.expressions;

import java.util.List;

/**
 * Class to represent an expression that is validated with boolean values. It
 * holds the index of variable to be used when the boolean values are given.
 * 
 */
public class Expression extends GenericExpression {

	private Integer valueIndex;

	public Expression(Integer valueIndex) {
		this.valueIndex = valueIndex;
	}

	public Boolean evaluate(List<Boolean> inputs) {
		return inputs.get(valueIndex);
	}

}
